- copy
PgGlyphString copy()
Copy a glyph string and associated storage.
- extents
void extents(PgFont font, PangoRectangle inkRect, PangoRectangle logicalRect)
Compute the logical and ink extents of a glyph string.
- extentsRange
void extentsRange(int start, int end, PgFont font, PangoRectangle inkRect, PangoRectangle logicalRect)
Computes the extents of a sub-portion of a glyph string.
- free
void free()
Free a glyph string and associated storage.
- getLogicalWidths
void getLogicalWidths(string text, int length, int embeddingLevel, int[] logicalWidths)
Given a PangoGlyphString and corresponding text, determine the width
corresponding to each character.
- getPgGlyphStringStruct
PangoGlyphString* getPgGlyphStringStruct(bool transferOwnership)
- getStruct
void* getStruct()
the main Gtk struct as a void*
- getWidth
int getWidth()
Computes the logical width of the glyph string.
- indexToX
void indexToX(string text, int length, PangoAnalysis* analysis, int index, bool trailing, int xPos)
Converts from character position to x position.
- indexToXFull
void indexToXFull(string text, int length, PangoAnalysis* analysis, PangoLogAttr* attrs, int index, bool trailing, int xPos)
Converts from character position to x position.
- setSize
void setSize(int newLen)
Resize a glyph string to the given length.
- xToIndex
void xToIndex(string text, int length, PangoAnalysis* analysis, int xPos, int index, int trailing)
Convert from x offset to character position.
A PangoGlyphString is used to store strings of glyphs with geometry and visual attribute information.
The storage for the glyph information is owned by the structure which simplifies memory management.